﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Drawing;
using System.Data;
using System.Linq;
using System.Text;
using System.Windows.Forms;

namespace LastFmDemo
{
    public partial class TrackDetail : UserControl
    {
        String _Title;

        public String Title
        {
            get { return _Title; }
            set
            {
                _Title = value;
                lbTrackTitle.Text = value;
            }
        }
        String _Artist;

        public String Artist
        {
            get { return _Artist; }
            set
            {
                _Artist = value;
                lbArtist.Text = value;
            }
        }
        String _URL;

        public String URL
        {
            get { return _URL; }
            set
            {
                _URL = value;
                linkLabelURL.Text = value;
            }
        }        
        public TrackDetail()
        {
            InitializeComponent();
        }
        public TrackDetail(String title, String artist, String url)
        {
            InitializeComponent();
            Title = title;
            Artist = artist;
            URL = url;
        }

        private void linkLabelURL_LinkClicked(object sender, LinkLabelLinkClickedEventArgs e)
        {
            Helper.ViewBrowser(URL);
        }
    }
}
